<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 159 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts159p0{position:absolute;left:106px;top:97px;}
 .ts159p1{position:absolute;left:352px;top:97px;}
 .ts159p3{position:absolute;left:665px;top:97px;}
 .ts159p7{position:absolute;left:106px;top:113px;}
 .ts159p8{position:absolute;left:706px;top:1026px;}
 .ts159p9{position:absolute;left:331px;top:1044px;}
 .ts159p13{position:absolute;left:106px;top:146px;}
 .ts159p14{position:absolute;left:106px;top:164px;}
 .ts159p15{position:absolute;left:106px;top:183px;}
 .ts159p16{position:absolute;left:106px;top:201px;}
 .ts159p18{position:absolute;left:106px;top:220px;}
 .ts159p19{position:absolute;left:106px;top:238px;}
 .ts159p20{position:absolute;left:106px;top:256px;}
 .ts159p22{position:absolute;left:106px;top:275px;}
 .ts159p23{position:absolute;left:106px;top:293px;}
 .ts159p24{position:absolute;left:106px;top:312px;}
 .ts159p26{position:absolute;left:106px;top:330px;}
 .ts159p27{position:absolute;left:106px;top:348px;}
 .ts159p29{position:absolute;left:106px;top:367px;}
 .ts159p30{position:absolute;left:106px;top:385px;}
 .ts159p34{position:absolute;left:106px;top:404px;}
 .ts159p35{position:absolute;left:106px;top:422px;}
 .ts159p37{position:absolute;left:106px;top:440px;}
 .ts159p38{position:absolute;left:106px;top:460px;}
 .ts159p40{position:absolute;left:106px;top:478px;}
 .ts159p42{position:absolute;left:106px;top:496px;}
 .ts159p45{position:absolute;left:106px;top:514px;}
 .ts159p47{position:absolute;left:106px;top:532px;}
 .ts159p49{position:absolute;left:106px;top:551px;}
 .ts159p50{position:absolute;left:106px;top:569px;}
 .ts159p51{position:absolute;left:106px;top:588px;}
 .ts159p53{position:absolute;left:106px;top:606px;}
 .ts159p55{position:absolute;left:106px;top:624px;}
 .ts159p56{position:absolute;left:106px;top:643px;}
 .ts159p57{position:absolute;left:106px;top:661px;}
 .ts159p59{position:absolute;left:106px;top:680px;}
 .ts159p62{position:absolute;left:106px;top:698px;}
 .ts159p65{position:absolute;left:106px;top:716px;}
 .ts159p67{position:absolute;left:106px;top:735px;}
 .ts159p68{position:absolute;left:106px;top:754px;}
 .ts159p70{position:absolute;left:106px;top:772px;}
 .ts159p71{position:absolute;left:106px;top:790px;}
 .ts159p73{position:absolute;left:106px;top:808px;}
 .ts159p75{position:absolute;left:106px;top:827px;}
 .ts159p77{position:absolute;left:106px;top:845px;}
 .ts159p79{position:absolute;left:106px;top:863px;}
 .ts159p81{position:absolute;left:106px;top:881px;}
 .ts159p83{position:absolute;left:106px;top:899px;}
 .ts159p84{position:absolute;left:106px;top:918px;}
 .ts159p86{position:absolute;left:106px;top:936px;}
 .ts159p87{position:absolute;left:106px;top:955px;}
 .ts159p89{position:absolute;left:106px;top:973px;}

 /* Font Styles */
 .ft0p159{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p159{font-weight:normal;}
 .ft2p159{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p159{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p159{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p159{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p159{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}

 /* Background Style */
 .styleBackground159{position:absolute;left:97px;top:458px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index158.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;159 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index160.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground159><img src="./background159.png" width="633" height="597" border="0" alt=""></div>
<div class=ts159p0><span class="ft0p159"> </span></div>
<div class=ts159p1><span class="ft0p159">Gravitybox Schedule Primer<span class="ft1p159"> </span></span></div>
<div class=ts159p3><span class="ft0p159">Page 157&nbsp; </span></div>
<div class=ts159p7><span class="ft2p159"> </span></div>
<div class=ts159p8><span class="ft3p159"> </span></div>
<div class=ts159p9><span class="ft4p159">1998&#45;2004 Gravitybox Software LLC<span class="ft3p159"> </span></span></div>
<div class=ts159p13><span class="ft5p159"> </span></div>
<div class=ts159p14><span class="ft5p159">The TaskList has a checked column. This corresponds to the task&#146;s &#147;PercentComplete&#148; </span></div>
<div class=ts159p15><span class="ft5p159">property. It may have a value of 0 to 100. If the value is equal to 100, the checkbox is </span></div>
<div class=ts159p16><span class="ft5p159">marked to indicate that the task is complete. If the user clicks the check box, the </span></div>
<div class=ts159p18><span class="ft5p159">&#147;PercentComplete&#148; property value is automatically set to 100, not matter its previous </span></div>
<div class=ts159p19><span class="ft5p159">value. As the user pressed the up, down, left, and right keys the selected row and </span></div>
<div class=ts159p20><span class="ft5p159">column will change. In Figure 16.4, the second row is selected. In it the second column </span></div>
<div class=ts159p22><span class="ft5p159">is selected as well. The user may press the &#60;F2&#62; at any time to edit the selected cell. </span></div>
<div class=ts159p23><span class="ft5p159">Cells may have different property types as well. The valid values for cell types are date, </span></div>
<div class=ts159p24><span class="ft5p159">time, text, and noedit. The date and time will verify that the user only enters valid dates </span></div>
<div class=ts159p26><span class="ft5p159">and times. The text value is a catchall. Any value is a valid string. The noedit value is </span></div>
<div class=ts159p27><span class="ft5p159">used when you do not wish to allow the user to edit the cell. </span></div>
<div class=ts159p29><span class="ft5p159"> </span></div>
<div class=ts159p30><span class="ft5p159">Loading the TaskList is a bit complicated. Because it is a general&#45;purpose control, there </span></div>
<div class=ts159p34><span class="ft5p159">are no predefined columns. Before you may load any data, you will need to load the </span></div>
<div class=ts159p35><span class="ft5p159">columns. The control has a column&#146;s collection and may be loaded as follows. </span></div>
<div class=ts159p37><span class="ft5p159"> </span></div>
<div class=ts159p38><span class="ft6p159">Call TaskList1.Columns.Clear </span></div>
<div class=ts159p40><span class="ft6p159">Call TaskList1.Columns.Add(&#34;Date&#34;, ctDate) </span></div>
<div class=ts159p42><span class="ft6p159">Call TaskList1.Columns.Add(&#34;Start Time&#34;, ctTime) </span></div>
<div class=ts159p45><span class="ft6p159">Call TaskList1.Columns.Add(&#34;Subject&#34;, ctText) </span></div>
<div class=ts159p47><span class="ft6p159">Call TaskList1.Columns.Add(&#34;Notes&#34;, ctText) </span></div>
<div class=ts159p49><span class="ft5p159"> </span></div>
<div class=ts159p50><span class="ft5p159">This code will clear any columns that exist. It will then add four columns with their </span></div>
<div class=ts159p51><span class="ft5p159">appropriate types. After this addition there will be four columns displayed on the </span></div>
<div class=ts159p53><span class="ft5p159">TaskList. We may then start to add data items. </span></div>
<div class=ts159p55><span class="ft5p159"> </span></div>
<div class=ts159p56><span class="ft5p159">The first thing you will notice when adding data items is that you do not specify any </span></div>
<div class=ts159p57><span class="ft5p159">data! There is a reason for this. Since there are no predefined columns there can be no </span></div>
<div class=ts159p59><span class="ft5p159">properties associated with these non&#45;existent columns. You must append a data object </span></div>
<div class=ts159p62><span class="ft5p159">to the collection and then set its sub&#45;items. Since there are 4 columns, we each Task </span></div>
<div class=ts159p65><span class="ft5p159">will have a TaskItems collection with 4 items in it. </span></div>
<div class=ts159p67><span class="ft5p159"> </span></div>
<div class=ts159p68><span class="ft6p159">Dim oTask As CTaskEl </span></div>
<div class=ts159p70><span class="ft6p159"> </span></div>
<div class=ts159p71><span class="ft6p159">&nbsp; Set oTask = TaskList1.Tasks.Add <span class="ft5p159"> </span></span></div>
<div class=ts159p73><span class="ft6p159">&nbsp; oTask.TaskItems(1).Text = &#34;12/31/2002&#34;<span class="ft5p159"> </span></span></div>
<div class=ts159p75><span class="ft6p159">&nbsp; oTask.TaskItems(2).Text = &#34;11:00 AM&#34;<span class="ft5p159"> </span></span></div>
<div class=ts159p77><span class="ft6p159">&nbsp; oTask.TaskItems(3).Text = &#34;My Subject&#34; <span class="ft5p159"> </span></span></div>
<div class=ts159p79><span class="ft6p159">&nbsp; oTask.TaskItems(4).Text = &#34;Some Notes&#34; <span class="ft5p159"> </span></span></div>
<div class=ts159p81><span class="ft6p159">&nbsp; Set oTask = Nothing<span class="ft5p159"> </span></span></div>
<div class=ts159p83><span class="ft5p159"> </span></div>
<div class=ts159p84><span class="ft5p159">We can use this object hierarchy to load and save. The OrgranizeAPI has a Tasks </span></div>
<div class=ts159p86><span class="ft5p159">collection. This may be loaded as the notes and contacts collection objects were </span></div>
<div class=ts159p87><span class="ft5p159">previously.&nbsp; </span></div>
<div class=ts159p89><span class="ft5p159"> </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
